-- GENERATED SPELL FOR [Bound Fire Elemental] --


function spell0_30416(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(12470,pUnit)
pUnit:RegisterEvent('Sorts_30416', 2000, 1)
end

function spell1_30416(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(17195,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30416', 1500, 1)
end

function Sorts_30416(pUnit, Event)
local choix_sorts_30416 = math.random(0, 1)
if choix_sorts_30416 == 0 then
pUnit:RegisterEvent('spell0_30416', 1, 1)
end
if choix_sorts_30416 == 1 then
pUnit:RegisterEvent('spell1_30416', 1, 1)
end
end

function mob30416_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30416', math.random(1500, 3000), 1)
end

function mob30416_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30416_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30416_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30416, 1, 'mob30416_Action')
RegisterUnitEvent(30416, 2, 'mob30416_Leave')
RegisterUnitEvent(30416, 3, 'mob30416_Kill')
RegisterUnitEvent(30416, 4, 'mob30416_Die')
